﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Finance/FinanceMaster.master" AutoEventWireup="true" 
	CodeBehind="AuditTrail.aspx.cs" Inherits="WebApplication.Finance.AuditTrail" Theme="BaselineTheme" %>

<%@ Register src="../Controls/PageHeadingBarCtrl.ascx" tagname="PageHeadingBarCtrl" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

<!-- Heading bar style -->
<style type="text/css">
.panelStyle 
{
	margin:auto; 
	margin-top:8px; 
	padding-top:8px; 
	padding-bottom:8px; 
	background-color:#87CEFA; 
	width:840px;
}
.actionsGridStyle
{
	margin-left:20px;
}
</style>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<!-- Page Header -->
<div style="margin:auto; margin-top:0px; background-color:#87CEFA; width:840px;">
	<uc1:PageHeadingBarCtrl ID="PageHeadingBarCtrl1" runat="server" Title="Audit Trail" />
</div>

<!-- Parameters Bar -->
<asp:Panel runat="server" CssClass="panelStyle" ID="pnlParams">
<table border="0" style="margin-left:24px; ">
	<tr>
		<td class="SilverLabel">Search:</td>
		<td><asp:TextBox ID="txtSearch" runat="server" class="SilverTextBox" Width="160px" ></asp:TextBox></td>
		<td><asp:Button ID="butSearch" runat="server" class="SilverButton" Text="Search" 
				onclick="butSearch_Click" /></td>
	</tr>
	<tr>
		<td></td>
		<td colspan="2"><asp:Label ID="Label1" CssClass="SilverInstructions" runat="server" 
				
				Text="Search by record name or type, for example, &quot;bank account&quot; or &quot;NI workflow&quot;"></asp:Label></td>
	</tr>
</table>
</asp:Panel>

<!-- Results -->
<asp:Panel runat="server" CssClass="panelStyle" ID="pnlResults">
	<asp:GridView ID="gridResult" runat="server" AutoGenerateColumns="False" CssClass="SilverGridView" GridLines="None"
		HorizontalAlign="Center" ShowHeader="false" CellSpacing="0" 
		BorderStyle="None" HeaderStyle-BackColor="Red" Width="820px"
		onrowdatabound="gridResult_RowDataBound">
	<Columns>
		<asp:TemplateField>
			<ItemTemplate>
				<table border="0">
					<tr style="background-color:#000099;">
						<td class="SilverLabel" style="margin-left:0px; font-weight:bold; width:410px;"><asp:Label ID="Label2" runat="server" Text='<%# Eval("ActionTypeNameAsText") %>'></asp:Label></td>
						<td class="SilverLabel" style="margin-left:0px; font-weight:bold; text-align:right; width:410px;"><asp:Label ID="Label3" runat="server" Text='<%# Eval("AtAndByText") %>'></asp:Label></td>
					</tr>
					<tr>
						<td colspan="5">
						<asp:GridView ID="gridActions" runat="server" AutoGenerateColumns="false" CssClass="actionsGridStyle" GridLines="Horizontal" BorderStyle="None" ShowHeader="false">
							<Columns>
							<asp:BoundField>
								<ItemStyle Width="40px" />
							</asp:BoundField>
								<asp:BoundField DataField="ActionTypeNameAsText" HeaderText="Action">
									<HeaderStyle CssClass="SilverLabel" Width="200" HorizontalAlign="Left" />
									<ItemStyle CssClass="SilverLabel" />
								</asp:BoundField>
							</Columns>
						</asp:GridView>
						</td>
					</tr>
				</table>
			</ItemTemplate>		
		</asp:TemplateField>
	</Columns>
	<EmptyDataTemplate>
		<asp:Label runat="server" Text="No audit details found" CssClass="SilverLabel" />
	</EmptyDataTemplate>
	</asp:GridView>
</asp:Panel>

</asp:Content>
